package com.tutorialspoint.constructorDI;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class MainApp {
	public static void main(String[] args) {
		ApplicationContext context = new ClassPathXmlApplicationContext(
				"beans_consDI.xml");

		TextEditor te = (TextEditor) context.getBean("textEditor");
		/*ApplicationContext ctx =
				new AnnotationConfigApplicationContext(TextEditorConfig.class);

		TextEditor te = ctx.getBean(TextEditor.class);*/


		te.spellCheck();
	}
}